package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_INSTALL_REFERRER;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;


public class SubmitInstallReferrerApi implements IRequestApi, IRequestType {

    private ReqSubmitInstallReferrerBean overripe;


    public static final class ReqSubmitInstallReferrerBean {
        private String referrerUrl;

        public void setReferrerUrl(String referrerUrl) {
            this.referrerUrl = referrerUrl;
        }
    }

    public SubmitInstallReferrerApi(ReqSubmitInstallReferrerBean overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_INSTALL_REFERRER;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

}


